const config = {
  production: {
    ApplicantCode: 'T134508719.DDH5',
    ApiRsskey: 'ZjZkODkxNGJhMGUzNGQ4YzlhZDI3M2ZkY2FhZjJhNTYxNjI4NDk0OTkzOTg0',
    saAddress: 'https://xnjkfx.cpic.com.cn:8006/sa?project=SXTOE',
    frBaseAdd: '/webroot/decision/biauth?token=',
    reportAddress: [
      // '/webroot/decision/url/mobile#/report?showType=2&id=bb0ed549-d7c6-48f1-97b0-842a0f649ada',
      // '/webroot/decision/url/mobile#/report?showType=2&id=446a4866-2942-4bb8-99fa-6e33ff3aaf8e',
      // '/webroot/decision/url/mobile#/report?showType=2&id=478ef03d-ce35-4d5c-b6ae-b6a419d6a955'
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E9%25A2%2584%25E7%25AE%2597%25E8%2580%2583%25E6%25A0%25B8.cpt&op=h5&__pi__=false',
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E4%25B8%259A%25E5%258A%25A1.cpt&op=h5&__pi__=false',
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E9%2598%259F%25E4%25BC%258D.cpt&op=h5&__pi__=false'
    ]
  },
  sit: {
    ApplicantCode: 'T134508719.H5',
    ApiRsskey: 'YmE5Y2MzYjM2NmIyNGJlN2JmNjVkNjMzZmZmNjdmZTQxNjM2NzE1MDAzMzcz',
    saAddress: 'https://xnjkfxsit.cpic.com.cn/sa?project=SXXT',
    frBaseAdd: '/webroot/decision/biauth?token=',
    reportAddress: [
      // '/webroot/decision/url/mobile#/report?showType=2&id=90793449-486b-452d-8ab1-0e7faa7e533d',
      // '/webroot/decision/url/mobile#/report?showType=2&id=bd411823-6a8e-4a5a-be0e-44c2e475b4f0',
      // '/webroot/decision/url/mobile#/report?showType=2&id=70cdb2aa-709b-421f-b39a-9aa4b2de3409'
      // '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E9%25A2%2584%25E7%25AE%2597%25E8%2580%2583%25E6%25A0%25B8.cpt&op=h5&__pi__=false',
      // '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E4%25B8%259A%25E5%258A%25A1.cpt&op=h5&__pi__=false',
      // '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E9%2598%259F%25E4%25BC%258D.cpt&op=h5&__pi__=false'
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252Fbeta1%252F%25E9%25A2%2584%25E7%25AE%2597%25E8%2580%2583%25E6%25A0%25B8.cpt&op=h5&__pi__=false',
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252Fbeta1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E4%25B8%259A%25E5%258A%25A1.cpt&op=h5&__pi__=false',
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252Fbeta1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E9%2598%259F%25E4%25BC%258D.cpt&op=h5&__pi__=false'
    ]
  },
  test: {
    ApplicantCode: 'T134508719.H5',
    ApiRsskey: 'MTgzNjVmMzAyZTIzNDU5ZDlhZGQ2YTkwZDgwZmZmZjAxNjM2NDQ0ODY4MzAx',
    saAddress: 'https://xnjkfxsit.cpic.com.cn/sa?project=SXXT',
    frBaseAdd: '/webroot/decision/biauth?token=',
    reportAddress: [
      // dev
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252Fbeta1%252F%25E9%25A2%2584%25E7%25AE%2597%25E8%2580%2583%25E6%25A0%25B8.cpt&op=h5&__pi__=false',
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252Fbeta1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E4%25B8%259A%25E5%258A%25A1.cpt&op=h5&__pi__=false',
      '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252Fbeta1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E9%2598%259F%25E4%25BC%258D.cpt&op=h5&__pi__=false'
      // sit
      // '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E9%25A2%2584%25E7%25AE%2597%25E8%2580%2583%25E6%25A0%25B8.cpt&op=h5&__pi__=false',
      // '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E4%25B8%259A%25E5%258A%25A1.cpt&op=h5&__pi__=false',
      // '/webroot/decision/view/report?viewlet=%25E9%2595%25BF%25E8%2588%25AA%25E9%25A9%25BE%25E9%25A9%25B6%25E8%2588%25B1%252F%25E4%25B8%25AA%25E9%2599%25A9%25E9%2598%259F%25E4%25BC%258D.cpt&op=h5&__pi__=false'
    ]
  }
}

let envVariable = null
// 生产环境
if (location.host === 'datastudio.cpic.com.cn') {
  envVariable = config.production
// sit 环境
} else if (location.host === 'datastudio-sit.cpic.com.cn') {
  envVariable = config.sit
} else {
  envVariable = config.test
}

module.exports = envVariable
